<?php
/**
* 动态网站练习-软件A232
* ================================================
* Author: TEACHER
* Date: 2025-3-4
*/
?>

     <div id="top">
     	<div id="banner">
     		<div id="logo">
     			<a href="index.php"><img src="images/2宝.png" /></a>
     		</div>
     		
     	</div>
     	
     	<div id="nav">
     		<nav>
     		    <ul class="nav-list">
     		  <?php 
			  $sqldh="select * from daohang order by id desc";
			  $querydh=mysqli_query($con,$sqldh);
			    while($rowdh=mysqli_fetch_array($querydh,MYSQLI_ASSOC))
			{
				?>
				 <li class="nav-item"><a href=<?php echo $rowdh['url'];?> class="nav-link"><?php echo $rowdh['name'];?></a></li>
				
				<?php
			}
			?>
     		    </ul>
     		 </nav>     		
     	</div>
     </div>     
     
    